package org.project.choujiang.config;

import lombok.extern.slf4j.Slf4j;
import org.project.choujiang.pojo.ro.R;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@Slf4j
@RestControllerAdvice
public class ExceptionHandler {
    @org.springframework.web.bind.annotation.ExceptionHandler(Exception.class)
    public R<String> quanbu(Exception exp){
        return R.fail(exp.getMessage());
    }
}
